<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<!-- 开发环境版本，包含了有帮助的命令行警告 -->
		<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
		<title>列表渲染</title>
		<!-- https://v2.cn.vuejs.org/v2/guide/#Vue-js-%E6%98%AF%E4%BB%80%E4%B9%88(官网链接) -->
	</head>
	<body>
		<ul>
			
			<li v-for="item in items">
				
				{{item.message}}
				
			</li>
			
		</ul>
		<script>
			var app = new Vue({
				el: '#app',
				data: {
					items:[
					{message:'Foo'},
					{message:'Bar'}
					]

				}
			})
		</script>
	</body>
</html>